﻿using Fadada.FASC.SDK.DotNetCore.Attributes;
using Newtonsoft.Json;

namespace Fadada.FASC.SDK.DotNetCore.Model
{
    [RemoteService("/sign-task/download-files","POST")]
    public class SignTaskDownloadFiles
    {
        /// <summary>
        /// 签署任务ID。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "signTaskId", Required = Required.Always)]
        public string SignTaskId { get; set; }

        /// <summary>
        /// 文档类型：
        /// doc：签署任务中的文档
        /// attach：签署任务中的附件。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "fileType", Required = Required.AllowNull)]
        public string FileType { get; set; }

        /// <summary>
        /// 指定签署任务中的docId或attachId。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "id", Required = Required.AllowNull)]
        public string Id { get; set; }
    }
}